package com.brainardphotography.blog.web.model;

import java.util.Date;
import java.util.List;

import com.brainardphotography.blog.BlogEntry;

public class FeedModel {
	private List<BlogEntry> entries;
	
	private Date lastUpdated;
	
	public String lastUpdated() {
		return lastUpdated().toString();
	}

	public FeedModel(List<BlogEntry> entries) {
		this.entries = entries;
		
		BlogEntry recent = entries.get(0);
		
		this.lastUpdated = recent.getCreated();
	}
}
